feat(admin): クラス・課題に俯瞰ダッシュボードと復元ファセットを追加#1107
Merged
smalruby3-editor-bot[bot] merged 1 commit intoJul 19, 2026
Merged
Conversation
たくさんの課題があるとフラット一覧では把握できないため、用途(俯瞰して みんなの課題に有益な課題を見つける / 依頼ベースの復元)に沿って再設計。 俯瞰ダッシュボード(新・既定タブ): - サマリー(総数/利用中/アーカイブ/直近30日) - 作成の推移(月別)・内容の充実度(ページ/画像/スターターでスコア化)・ テーマ傾向(課題名/クラス名の頻出語)。人気/提出数ではなく中身と傾向で判断 - みんなの課題の有益候補(充実かつ未共有らしい課題)を見える化。促す仕組み (推奨フラグ+先生UIバナー)は別 EPIC #1106 に切り出し - チャートは外部ライブラリ不使用(CSS 横棒) 期限切れ復元: q を任意にし、削除時期・先生でファセット絞り込み(みんなの課題 カタログ風)。大量の削除済みを分類してからクラス丸ごと復元 - 新 API: GET /admin/classrooms/overview(サーバー側集計、監査ログつき) - restore-candidates は q 任意 + facets(byMonth/byTeacher)を返すよう拡張 - 集計は純関数 classroom-overview.ts に分離してユニットテスト テスト: infra 41(overview 9 + handler の overview/facets)/ SPA 37。 tsc・eslint clean。stg デプロイ + ブラウザで 3 タブ描画・ファセット絞り込みを確認 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
🚀 Preview deployed: https://smalruby.jp/smalruby3-editor/feature/admin-classroom-overview/ |
github-actions Bot
pushed a commit
that referenced
this pull request
Jul 19, 2026
…n-classroom-overview feat(admin): クラス・課題に俯瞰ダッシュボードと復元ファセットを追加
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
「クラス・課題」画面が prod でたくさんの課題があるとフラット一覧では把握できない問題への対応。壁打ち(2026-07-19)で確定した 2 用途に沿って再設計しました。
Changes
① 俯瞰ダッシュボード(新・既定タブ)
壁打ちで選ばれた軸(作成の推移 / 内容の充実度 / テーマ傾向。人気・提出数は不採用 — 中身と傾向で判断):
② 期限切れ復元(ファセット絞り込み)
qを任意化し、削除時期・先生でファセット絞り込み(みんなの課題カタログ風)→ 大量の削除済みを分類してからクラス丸ごと復元{items, total, facets:{byMonth, byTeacher}}を返すよう拡張API / 集計
GET /admin/classrooms/overview(サーバー側集計・監査ログ)classroom-overview.tsに分離(DynamoDB 非依存でユニットテスト)別 EPIC に切り出し
Test / Verify
Related
EPIC #1073(管理 SPA)/ 派生 #1106(先生への共有促し)
🤖 Generated with Claude Code